package com.kfm.controller;

import com.kfm.util.SendPhoneMsg;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendMsgController {

    @PostMapping("/send")
    public String send(String phone){
        try {
            SendPhoneMsg.send(phone, "345678");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "发送成功";
    }
}
